home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softwarová Záchrana 3
/
Softwarova-zachrana-3.bin
/
Xteq X-Setup
/
xqdcXSP-Setup-EN.exe
/
{app}
/
plugins
/
XQ MSO2K Folders 1.xpl
< prev
next >
Wrap
Text File
|
2001-09-01
|
2KB
|
71 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="4"
"COUNT"="3"
"UIPATH 1"="System\File System\Folders\Data"
"UIPATH 2"="Program Options\Microsoft Office\MS Office 2000\Data Folders"
"NAME"="Office 2000 Folders #1"
"VERSION"="1.15"
"LANGUAGE"="VBScript"
"TEXT 1"="Templates"
"TEXT 2"="Shared Templates"
"TEXT 3"="Queries"
"DESCRIPTION 1"="You can alter the location of different MS Office folders here."
"DESCRIPTION 2"="Please exit all Office programs before changing this settings."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
sP="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\Common\General\"
sTMP="UserTemplates" 'STR W9x - xSTR WNT
sSTM="SharedTemplates"
sQRY="UserQueriesFolder"
'"WorkgroupThemes"
sPCheck="HKCU\Software\Microsoft\Office\9.0\"
Sub Plugin_Initialize
if RegPathExists(sPCheck) then
s=RegReadValue(sP & sTMP)
SetUIElement 1,s
s=RegReadValue(sP & sSTM)
SetUIElement 2,s
s=RegReadValue(sP & sQRY)
SetUIElement 3,s
else
Disable
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
Call Wrt(1,sP & sTMP)
Call Wrt(2,sP & sSTM)
Call Wrt(3,sP & sQRY)
Call Logoff()
End Sub
Sub Wrt(ITM,VAL)
s=GetUIElement(ITM)
if len(s)>0 then
if Right(s,1)="\" then
s=left(s,len(s)-1)
end if
Call RegWriteValue(VAL,s,1)
else
s=RegReadValue(VAL)
if IsEmpty(s)=false then Call RegDeleteValue(VAL)
end if
end sub
Sub Plugin_Terminate
End Sub